import JSEncrypt from 'jsencrypt'
const jsEncrypt = new JSEncrypt();
const publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3Hl6fxWAY372wQB2K9XVYQWVN' +
    'BlYm5CdlHHdP/5Za7mArnbDzbW42QsXEyidtfOr5jw7+Hl/H1MoS8V28PMvXwzqo' +
    'J7gFXk2BkLBruBHvT8echJEJ+yM6+H9jHsIC7xr3aMpsxMcef1inJhitSgIrmVGl' +
    'wAYjcj9wSOh7rmQLWQIDAQAB'
jsEncrypt.setKey(publicKey)

const encrypt = (content)=>{
    return jsEncrypt.encrypt(content)
}

export {encrypt}
